package com.yjd.comm.system.service;

import java.util.List;
import java.util.Map;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.system.model.AdminRoleInfoDto;
import com.yjd.comm.system.model.AdminRoleUserModel;

/**
 * <b>description</b>：管理员角色组关系服务接口<br>
 * <b>time</b>：2016-11-03 17:41:48 <br>
 * <b>author</b>：  carl
 */
public interface IAdminRoleUserService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public AdminRoleUserModel insert(AdminRoleUserModel model) throws Exception;
	
	
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public void insertBatch(List<AdminRoleUserModel> List) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(AdminRoleUserModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	
	
	/**
	 * 查询用户角色
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public List<AdminRoleInfoDto> getAdminRoleByIdList(Map<String,Object> param)throws Exception;
	
	/**
	 * 查询用户角色(map结构)
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public Map<Long,List<AdminRoleInfoDto>> getAdminRoleBuyIds(Map<String,Object> param)throws Exception;
	
	/**
	 * 根据管理员id,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long admin_id) throws Exception;

}
